package com.example.cms.controller;

import com.example.cms.entity.Courses;
import com.example.cms.pojo.QueryPage;
import com.example.cms.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName CoursesController
 * @Descriptiom 课程信息
 * @Author Sunbird
 * @Date 2018/12/20 15:51
 * @Version 1.0
 **/
@RestController
public class CoursesController {
    @Autowired
    private CoursesService coursesService;
    @RequestMapping("findPageCourses")
            public List<Courses> findPage(QueryPage queryPage){
               return coursesService.getCourses(queryPage);
            }
}
